﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities.PBKT;

namespace BLL.PBKT
{
	public class Teams
	{
		public static bool Exit(DoiTuyen doiTuyen)
		{
			List<CauThu> dsCauThu =null;
			dsCauThu = CauThu.Objects.Find(c => c.MaDT == doiTuyen.MaDT).ToList();
			List<LichThiDau> dsLichThiDau = null;
			dsLichThiDau = LichThiDau.Objects.Find(c => c.MaDoi1 == doiTuyen.MaDT || c.MaDoi2 == doiTuyen.MaDT).ToList();
			if (dsCauThu != null && dsLichThiDau != null)
				return true;
			else
				return false;

		}
	}
}
